package c.e.a.b.f.b;

import java.util.Map;
import java.util.Set;

/* compiled from: com.google.android.gms:play-services-measurement@@18.0.0 */
public final class ba extends i9 {
    public String d;
    public Set<Integer> e;
    public Map<Integer, da> f;
    public Long g;
    public Long h;

    public ba(k9 k9Var) {
        super(k9Var);
    }

    public final boolean p() {
        return false;
    }

    public final da s(int i) {
        if (this.f.containsKey(Integer.valueOf(i))) {
            return (da) this.f.get(Integer.valueOf(i));
        }
        da daVar = new da(this, this.d, null);
        this.f.put(Integer.valueOf(i), daVar);
        return daVar;
    }

    /* JADX WARNING: Removed duplicated region for block: B:429:0x057e A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:262:0x0577  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x026d  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:81:0x01db A:{SYNTHETIC, Splitter:B:81:0x01db} */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x01bb A:{Catch:{ SQLiteException -> 0x022c }} */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x01bb A:{Catch:{ SQLiteException -> 0x022c }} */
    /* JADX WARNING: Removed duplicated region for block: B:81:0x01db A:{SYNTHETIC, Splitter:B:81:0x01db} */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x0184  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x026d  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x026d  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:168:0x035c  */
    /* JADX WARNING: Removed duplicated region for block: B:222:0x0487  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:168:0x035c  */
    /* JADX WARNING: Removed duplicated region for block: B:222:0x0487  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:163:0x034a  */
    /* JADX WARNING: Removed duplicated region for block: B:168:0x035c  */
    /* JADX WARNING: Removed duplicated region for block: B:222:0x0487  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:149:0x0314 A:{ExcHandler: all (th java.lang.Throwable), Splitter:B:123:0x02b6} */
    /* JADX WARNING: Removed duplicated region for block: B:61:0x017c  */
    /* JADX WARNING: Removed duplicated region for block: B:81:0x01db A:{SYNTHETIC, Splitter:B:81:0x01db} */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x01bb A:{Catch:{ SQLiteException -> 0x022c }} */
    /* JADX WARNING: Removed duplicated region for block: B:214:0x0472  */
    /* JADX WARNING: Removed duplicated region for block: B:109:0x0262  */
    /* JADX WARNING: Removed duplicated region for block: B:113:0x026d  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:157:0x0332 A:{Catch:{ all -> 0x046e }} */
    /* JADX WARNING: Removed duplicated region for block: B:163:0x034a  */
    /* JADX WARNING: Removed duplicated region for block: B:168:0x035c  */
    /* JADX WARNING: Removed duplicated region for block: B:222:0x0487  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Removed duplicated region for block: B:396:0x09e0  */
    /* JADX WARNING: Removed duplicated region for block: B:157:0x0332 A:{Catch:{ all -> 0x046e }} */
    /* JADX WARNING: Removed duplicated region for block: B:163:0x034a  */
    /* JADX WARNING: Removed duplicated region for block: B:168:0x035c  */
    /* JADX WARNING: Removed duplicated region for block: B:222:0x0487  */
    /* JADX WARNING: Removed duplicated region for block: B:290:0x0639  */
    /* JADX WARNING: Removed duplicated region for block: B:330:0x07d8  */
    /* JADX WARNING: Removed duplicated region for block: B:379:0x0959  */
    /* JADX WARNING: Failed to process nested try/catch */
    /* JADX WARNING: Missing block: B:149:0x0314, code skipped:
            r0 = th;
     */
    /* JADX WARNING: Missing block: B:150:0x0315, code skipped:
            r7 = null;
     */
    /* JADX WARNING: Missing block: B:151:0x0318, code skipped:
            r0 = e;
     */
    /* JADX WARNING: Missing block: B:152:0x0319, code skipped:
            r18 = r8;
     */
    /* JADX WARNING: Missing block: B:159:0x033e, code skipped:
            r0 = java.util.Collections.emptyMap();
     */
    /* JADX WARNING: Missing block: B:160:0x0342, code skipped:
            if (r5 != null) goto L_0x0344;
     */
    /* JADX WARNING: Missing block: B:161:0x0344, code skipped:
            r5.close();
     */
    /* JADX WARNING: Missing block: B:163:0x034a, code skipped:
            r5.close();
     */
    /* JADX WARNING: Missing block: B:214:0x0472, code skipped:
            r7.close();
     */
    /* JADX WARNING: Missing block: B:304:0x0711, code skipped:
            if (r10.a.g.u(r10.d, c.e.a.b.f.b.p.F0) == false) goto L_0x0716;
     */
    public final java.util.List<c.e.a.b.e.c.y0> t(java.lang.String r63, java.util.List<c.e.a.b.e.c.a1> r64, java.util.List<c.e.a.b.e.c.i1> r65, java.lang.Long r66, java.lang.Long r67) {
        /*
        r62 = this;
        r10 = r62;
        r11 = "current_results";
        b.i.b.f.N(r63);
        r12 = "null reference";
        r13 = r64;
        java.util.Objects.requireNonNull(r13, r12);
        r14 = r65;
        java.util.Objects.requireNonNull(r14, r12);
        r0 = r63;
        r10.d = r0;
        r0 = new java.util.HashSet;
        r0.<init>();
        r10.e = r0;
        r0 = new b.f.a;
        r0.m5038init();
        r10.f = r0;
        r0 = r66;
        r10.g = r0;
        r0 = r67;
        r10.h = r0;
        r0 = r64.iterator();
    L_0x0031:
        r1 = r0.hasNext();
        r15 = 1;
        r9 = 0;
        if (r1 == 0) goto L_0x004d;
    L_0x0039:
        r1 = r0.next();
        r1 = (c.e.a.b.e.c.a1) r1;
        r1 = r1.F();
        r2 = "_s";
        r1 = r2.equals(r1);
        if (r1 == 0) goto L_0x0031;
    L_0x004b:
        r1 = 1;
        goto L_0x004e;
    L_0x004d:
        r1 = 0;
    L_0x004e:
        r0 = c.e.a.b.e.c.h9.a();
        if (r0 == 0) goto L_0x0065;
    L_0x0054:
        r0 = r10.a;
        r0 = r0.g;
        r2 = r10.d;
        r3 = c.e.a.b.f.b.p.c0;
        r0 = r0.u(r2, r3);
        if (r0 == 0) goto L_0x0065;
    L_0x0062:
        r16 = 1;
        goto L_0x0067;
    L_0x0065:
        r16 = 0;
    L_0x0067:
        r0 = c.e.a.b.e.c.h9.a();
        if (r0 == 0) goto L_0x007e;
    L_0x006d:
        r0 = r10.a;
        r0 = r0.g;
        r2 = r10.d;
        r3 = c.e.a.b.f.b.p.b0;
        r0 = r0.u(r2, r3);
        if (r0 == 0) goto L_0x007e;
    L_0x007b:
        r17 = 1;
        goto L_0x0080;
    L_0x007e:
        r17 = 0;
    L_0x0080:
        if (r1 == 0) goto L_0x00bf;
    L_0x0082:
        r2 = r62.q();
        r3 = r10.d;
        r2.n();
        r2.g();
        b.i.b.f.N(r3);
        r0 = new android.content.ContentValues;
        r0.<init>();
        r4 = java.lang.Integer.valueOf(r9);
        r5 = "current_session_count";
        r0.put(r5, r4);
        r4 = r2.t();	 Catch:{ SQLiteException -> 0x00af }
        r5 = "events";
        r6 = "app_id = ?";
        r7 = new java.lang.String[r15];	 Catch:{ SQLiteException -> 0x00af }
        r7[r9] = r3;	 Catch:{ SQLiteException -> 0x00af }
        r4.update(r5, r0, r6, r7);	 Catch:{ SQLiteException -> 0x00af }
        goto L_0x00bf;
    L_0x00af:
        r0 = move-exception;
        r2 = r2.d();
        r2 = r2.f;
        r3 = c.e.a.b.f.b.q3.s(r3);
        r4 = "Error resetting session-scoped event counts. appId";
        r2.c(r4, r3, r0);
    L_0x00bf:
        r0 = java.util.Collections.emptyMap();
        r8 = "audience_id";
        if (r17 == 0) goto L_0x0188;
    L_0x00c7:
        if (r16 == 0) goto L_0x0188;
    L_0x00c9:
        r2 = r62.q();
        r3 = r10.d;
        java.util.Objects.requireNonNull(r2);
        b.i.b.f.N(r3);
        r4 = new b.f.a;
        r4.m5038init();
        r18 = r2.t();
        r19 = "event_filters";
        r0 = "data";
        r20 = new java.lang.String[]{r8, r0};	 Catch:{ SQLiteException -> 0x0165, all -> 0x0162 }
        r21 = "app_id=?";
        r0 = new java.lang.String[r15];	 Catch:{ SQLiteException -> 0x0165, all -> 0x0162 }
        r0[r9] = r3;	 Catch:{ SQLiteException -> 0x0165, all -> 0x0162 }
        r23 = 0;
        r24 = 0;
        r25 = 0;
        r22 = r0;
        r5 = r18.query(r19, r20, r21, r22, r23, r24, r25);	 Catch:{ SQLiteException -> 0x0165, all -> 0x0162 }
        r0 = r5.moveToFirst();	 Catch:{ SQLiteException -> 0x0160 }
        if (r0 != 0) goto L_0x0107;
    L_0x00fe:
        r0 = java.util.Collections.emptyMap();	 Catch:{ SQLiteException -> 0x0160 }
        r5.close();
        goto L_0x0188;
    L_0x0107:
        r0 = r5.getBlob(r15);	 Catch:{ SQLiteException -> 0x0160 }
        r6 = c.e.a.b.e.c.l0.I();	 Catch:{ IOException -> 0x0143 }
        r0 = c.e.a.b.f.b.q9.x(r6, r0);	 Catch:{ IOException -> 0x0143 }
        r0 = (c.e.a.b.e.c.l0.a) r0;	 Catch:{ IOException -> 0x0143 }
        r0 = r0.l();	 Catch:{ IOException -> 0x0143 }
        r0 = (c.e.a.b.e.c.u4) r0;	 Catch:{ IOException -> 0x0143 }
        r0 = (c.e.a.b.e.c.l0) r0;	 Catch:{ IOException -> 0x0143 }
        r6 = r0.C();	 Catch:{ SQLiteException -> 0x0160 }
        if (r6 == 0) goto L_0x0153;
    L_0x0123:
        r6 = r5.getInt(r9);	 Catch:{ SQLiteException -> 0x0160 }
        r7 = java.lang.Integer.valueOf(r6);	 Catch:{ SQLiteException -> 0x0160 }
        r7 = r4.get(r7);	 Catch:{ SQLiteException -> 0x0160 }
        r7 = (java.util.List) r7;	 Catch:{ SQLiteException -> 0x0160 }
        if (r7 != 0) goto L_0x013f;
    L_0x0133:
        r7 = new java.util.ArrayList;	 Catch:{ SQLiteException -> 0x0160 }
        r7.<init>();	 Catch:{ SQLiteException -> 0x0160 }
        r6 = java.lang.Integer.valueOf(r6);	 Catch:{ SQLiteException -> 0x0160 }
        r4.put(r6, r7);	 Catch:{ SQLiteException -> 0x0160 }
    L_0x013f:
        r7.add(r0);	 Catch:{ SQLiteException -> 0x0160 }
        goto L_0x0153;
    L_0x0143:
        r0 = move-exception;
        r6 = r2.d();	 Catch:{ SQLiteException -> 0x0160 }
        r6 = r6.f;	 Catch:{ SQLiteException -> 0x0160 }
        r7 = "Failed to merge filter. appId";
        r9 = c.e.a.b.f.b.q3.s(r3);	 Catch:{ SQLiteException -> 0x0160 }
        r6.c(r7, r9, r0);	 Catch:{ SQLiteException -> 0x0160 }
    L_0x0153:
        r0 = r5.moveToNext();	 Catch:{ SQLiteException -> 0x0160 }
        if (r0 != 0) goto L_0x015e;
    L_0x0159:
        r5.close();
        r9 = r4;
        goto L_0x0189;
    L_0x015e:
        r9 = 0;
        goto L_0x0107;
    L_0x0160:
        r0 = move-exception;
        goto L_0x0167;
    L_0x0162:
        r0 = move-exception;
        r7 = 0;
        goto L_0x0182;
    L_0x0165:
        r0 = move-exception;
        r5 = 0;
    L_0x0167:
        r2 = r2.d();	 Catch:{ all -> 0x0180 }
        r2 = r2.f;	 Catch:{ all -> 0x0180 }
        r4 = "Database error querying filters. appId";
        r3 = c.e.a.b.f.b.q3.s(r3);	 Catch:{ all -> 0x0180 }
        r2.c(r4, r3, r0);	 Catch:{ all -> 0x0180 }
        r0 = java.util.Collections.emptyMap();	 Catch:{ all -> 0x0180 }
        if (r5 == 0) goto L_0x0188;
    L_0x017c:
        r5.close();
        goto L_0x0188;
    L_0x0180:
        r0 = move-exception;
        r7 = r5;
    L_0x0182:
        if (r7 == 0) goto L_0x0187;
    L_0x0184:
        r7.close();
    L_0x0187:
        throw r0;
    L_0x0188:
        r9 = r0;
    L_0x0189:
        r2 = r62.q();
        r3 = r10.d;
        r2.n();
        r2.g();
        b.i.b.f.N(r3);
        r18 = r2.t();
        r19 = "audience_filter_values";
        r20 = new java.lang.String[]{r8, r11};	 Catch:{ SQLiteException -> 0x0232, all -> 0x022e }
        r21 = "app_id=?";
        r0 = new java.lang.String[r15];	 Catch:{ SQLiteException -> 0x0232, all -> 0x022e }
        r4 = 0;
        r0[r4] = r3;	 Catch:{ SQLiteException -> 0x0232, all -> 0x022e }
        r23 = 0;
        r24 = 0;
        r25 = 0;
        r22 = r0;
        r4 = r18.query(r19, r20, r21, r22, r23, r24, r25);	 Catch:{ SQLiteException -> 0x0232, all -> 0x022e }
        r0 = r4.moveToFirst();	 Catch:{ SQLiteException -> 0x022c }
        if (r0 != 0) goto L_0x01db;
    L_0x01bb:
        r0 = c.e.a.b.e.c.n9.a();	 Catch:{ SQLiteException -> 0x022c }
        if (r0 == 0) goto L_0x01d6;
    L_0x01c1:
        r0 = r2.a;	 Catch:{ SQLiteException -> 0x022c }
        r0 = r0.g;	 Catch:{ SQLiteException -> 0x022c }
        r5 = c.e.a.b.f.b.p.F0;	 Catch:{ SQLiteException -> 0x022c }
        r0 = r0.u(r3, r5);	 Catch:{ SQLiteException -> 0x022c }
        if (r0 == 0) goto L_0x01d6;
    L_0x01cd:
        r0 = java.util.Collections.emptyMap();	 Catch:{ SQLiteException -> 0x022c }
        r4.close();
        goto L_0x025e;
    L_0x01d6:
        r4.close();
        goto L_0x0265;
    L_0x01db:
        r5 = new b.f.a;	 Catch:{ SQLiteException -> 0x022c }
        r5.m5038init();	 Catch:{ SQLiteException -> 0x022c }
        r6 = 0;
    L_0x01e1:
        r7 = r4.getInt(r6);	 Catch:{ SQLiteException -> 0x022c }
        r0 = r4.getBlob(r15);	 Catch:{ SQLiteException -> 0x022c }
        r6 = c.e.a.b.e.c.g1.M();	 Catch:{ IOException -> 0x0205 }
        r0 = c.e.a.b.f.b.q9.x(r6, r0);	 Catch:{ IOException -> 0x0205 }
        r0 = (c.e.a.b.e.c.g1.a) r0;	 Catch:{ IOException -> 0x0205 }
        r0 = r0.l();	 Catch:{ IOException -> 0x0205 }
        r0 = (c.e.a.b.e.c.u4) r0;	 Catch:{ IOException -> 0x0205 }
        r0 = (c.e.a.b.e.c.g1) r0;	 Catch:{ IOException -> 0x0205 }
        r6 = java.lang.Integer.valueOf(r7);	 Catch:{ SQLiteException -> 0x022c }
        r5.put(r6, r0);	 Catch:{ SQLiteException -> 0x022c }
        r18 = r5;
        goto L_0x021b;
    L_0x0205:
        r0 = move-exception;
        r6 = r2.d();	 Catch:{ SQLiteException -> 0x022c }
        r6 = r6.f;	 Catch:{ SQLiteException -> 0x022c }
        r15 = "Failed to merge filter results. appId, audienceId, error";
        r18 = r5;
        r5 = c.e.a.b.f.b.q3.s(r3);	 Catch:{ SQLiteException -> 0x022c }
        r7 = java.lang.Integer.valueOf(r7);	 Catch:{ SQLiteException -> 0x022c }
        r6.d(r15, r5, r7, r0);	 Catch:{ SQLiteException -> 0x022c }
    L_0x021b:
        r0 = r4.moveToNext();	 Catch:{ SQLiteException -> 0x022c }
        if (r0 != 0) goto L_0x0227;
    L_0x0221:
        r4.close();
        r15 = r18;
        goto L_0x0266;
    L_0x0227:
        r5 = r18;
        r6 = 0;
        r15 = 1;
        goto L_0x01e1;
    L_0x022c:
        r0 = move-exception;
        goto L_0x0234;
    L_0x022e:
        r0 = move-exception;
        r7 = 0;
        goto L_0x09de;
    L_0x0232:
        r0 = move-exception;
        r4 = 0;
    L_0x0234:
        r5 = r2.d();	 Catch:{ all -> 0x09dc }
        r5 = r5.f;	 Catch:{ all -> 0x09dc }
        r6 = "Database error querying filter results. appId";
        r7 = c.e.a.b.f.b.q3.s(r3);	 Catch:{ all -> 0x09dc }
        r5.c(r6, r7, r0);	 Catch:{ all -> 0x09dc }
        r0 = c.e.a.b.e.c.n9.a();	 Catch:{ all -> 0x09dc }
        if (r0 == 0) goto L_0x0260;
    L_0x0249:
        r0 = r2.a;	 Catch:{ all -> 0x09dc }
        r0 = r0.g;	 Catch:{ all -> 0x09dc }
        r2 = c.e.a.b.f.b.p.F0;	 Catch:{ all -> 0x09dc }
        r0 = r0.u(r3, r2);	 Catch:{ all -> 0x09dc }
        if (r0 == 0) goto L_0x0260;
    L_0x0255:
        r0 = java.util.Collections.emptyMap();	 Catch:{ all -> 0x09dc }
        if (r4 == 0) goto L_0x025e;
    L_0x025b:
        r4.close();
    L_0x025e:
        r15 = r0;
        goto L_0x0266;
    L_0x0260:
        if (r4 == 0) goto L_0x0265;
    L_0x0262:
        r4.close();
    L_0x0265:
        r15 = 0;
    L_0x0266:
        r0 = c.e.a.b.e.c.n9.a();
        r7 = 2;
        if (r0 == 0) goto L_0x027b;
    L_0x026d:
        r0 = r10.a;
        r0 = r0.g;
        r2 = r10.d;
        r3 = c.e.a.b.f.b.p.F0;
        r0 = r0.u(r2, r3);
        if (r0 != 0) goto L_0x027d;
    L_0x027b:
        if (r15 == 0) goto L_0x062c;
    L_0x027d:
        r0 = r15.isEmpty();
        if (r0 == 0) goto L_0x0285;
    L_0x0283:
        goto L_0x062c;
    L_0x0285:
        r2 = new java.util.HashSet;
        r0 = r15.keySet();
        r2.<init>(r0);
        if (r1 == 0) goto L_0x047a;
    L_0x0290:
        r1 = r10.d;
        b.i.b.f.N(r1);
        r3 = new b.f.a;
        r3.m5038init();
        r0 = r15.isEmpty();
        if (r0 != 0) goto L_0x0476;
    L_0x02a0:
        r4 = r62.q();
        r4.n();
        r4.g();
        b.i.b.f.N(r1);
        r0 = new b.f.a;
        r0.m5038init();
        r5 = r4.t();
        r6 = "select audience_id, filter_id from event_filters where app_id = ? and session_scoped = 1 UNION select audience_id, filter_id from property_filters where app_id = ? and session_scoped = 1;";
        r18 = r8;
        r8 = new java.lang.String[r7];	 Catch:{ SQLiteException -> 0x0311, all -> 0x0314 }
        r19 = 0;
        r8[r19] = r1;	 Catch:{ SQLiteException -> 0x0311, all -> 0x0314 }
        r19 = 1;
        r8[r19] = r1;	 Catch:{ SQLiteException -> 0x0311, all -> 0x0314 }
        r5 = r5.rawQuery(r6, r8);	 Catch:{ SQLiteException -> 0x0311, all -> 0x0314 }
        r6 = r5.moveToFirst();	 Catch:{ SQLiteException -> 0x030e }
        if (r6 != 0) goto L_0x02d7;
    L_0x02ce:
        r0 = java.util.Collections.emptyMap();	 Catch:{ SQLiteException -> 0x030e }
        r5.close();
        goto L_0x034e;
    L_0x02d7:
        r6 = 0;
        r8 = r5.getInt(r6);	 Catch:{ SQLiteException -> 0x030e }
        r6 = java.lang.Integer.valueOf(r8);	 Catch:{ SQLiteException -> 0x030e }
        r6 = r0.get(r6);	 Catch:{ SQLiteException -> 0x030e }
        r6 = (java.util.List) r6;	 Catch:{ SQLiteException -> 0x030e }
        if (r6 != 0) goto L_0x02f4;
    L_0x02e8:
        r6 = new java.util.ArrayList;	 Catch:{ SQLiteException -> 0x030e }
        r6.<init>();	 Catch:{ SQLiteException -> 0x030e }
        r8 = java.lang.Integer.valueOf(r8);	 Catch:{ SQLiteException -> 0x030e }
        r0.put(r8, r6);	 Catch:{ SQLiteException -> 0x030e }
    L_0x02f4:
        r8 = 1;
        r19 = r5.getInt(r8);	 Catch:{ SQLiteException -> 0x030c }
        r7 = java.lang.Integer.valueOf(r19);	 Catch:{ SQLiteException -> 0x030c }
        r6.add(r7);	 Catch:{ SQLiteException -> 0x030c }
        r6 = r5.moveToNext();	 Catch:{ SQLiteException -> 0x030c }
        if (r6 != 0) goto L_0x030a;
    L_0x0306:
        r5.close();
        goto L_0x034e;
    L_0x030a:
        r7 = 2;
        goto L_0x02d7;
    L_0x030c:
        r0 = move-exception;
        goto L_0x031d;
    L_0x030e:
        r0 = move-exception;
        r8 = 1;
        goto L_0x031d;
    L_0x0311:
        r0 = move-exception;
    L_0x0312:
        r8 = 1;
        goto L_0x031c;
    L_0x0314:
        r0 = move-exception;
        r7 = 0;
        goto L_0x0470;
    L_0x0318:
        r0 = move-exception;
        r18 = r8;
        goto L_0x0312;
    L_0x031c:
        r5 = 0;
    L_0x031d:
        r6 = r4.d();	 Catch:{ all -> 0x046e }
        r6 = r6.f;	 Catch:{ all -> 0x046e }
        r7 = "Database error querying scoped filters. appId";
        r8 = c.e.a.b.f.b.q3.s(r1);	 Catch:{ all -> 0x046e }
        r6.c(r7, r8, r0);	 Catch:{ all -> 0x046e }
        r0 = c.e.a.b.e.c.n9.a();	 Catch:{ all -> 0x046e }
        if (r0 == 0) goto L_0x0348;
    L_0x0332:
        r0 = r4.a;	 Catch:{ all -> 0x046e }
        r0 = r0.g;	 Catch:{ all -> 0x046e }
        r4 = c.e.a.b.f.b.p.F0;	 Catch:{ all -> 0x046e }
        r0 = r0.u(r1, r4);	 Catch:{ all -> 0x046e }
        if (r0 == 0) goto L_0x0348;
    L_0x033e:
        r0 = java.util.Collections.emptyMap();	 Catch:{ all -> 0x046e }
        if (r5 == 0) goto L_0x034e;
    L_0x0344:
        r5.close();
        goto L_0x034e;
    L_0x0348:
        if (r5 == 0) goto L_0x034d;
    L_0x034a:
        r5.close();
    L_0x034d:
        r0 = 0;
    L_0x034e:
        r1 = r15.keySet();
        r1 = r1.iterator();
    L_0x0356:
        r4 = r1.hasNext();
        if (r4 == 0) goto L_0x0478;
    L_0x035c:
        r4 = r1.next();
        r4 = (java.lang.Integer) r4;
        r4 = r4.intValue();
        r5 = java.lang.Integer.valueOf(r4);
        r5 = r15.get(r5);
        r5 = (c.e.a.b.e.c.g1) r5;
        r6 = java.lang.Integer.valueOf(r4);
        r6 = r0.get(r6);
        r6 = (java.util.List) r6;
        if (r6 == 0) goto L_0x045f;
    L_0x037c:
        r7 = r6.isEmpty();
        if (r7 == 0) goto L_0x0384;
    L_0x0382:
        goto L_0x045f;
    L_0x0384:
        r7 = r62.m();
        r8 = r5.E();
        r7 = r7.C(r8, r6);
        r8 = r7.isEmpty();
        if (r8 != 0) goto L_0x045b;
    L_0x0396:
        r8 = r5.t();
        r8 = (c.e.a.b.e.c.g1.a) r8;
        r20 = r0;
        r0 = r8.c;
        if (r0 == 0) goto L_0x03aa;
    L_0x03a2:
        r8.j();
        r0 = r1;
        r1 = 0;
        r8.c = r1;
        goto L_0x03ab;
    L_0x03aa:
        r0 = r1;
    L_0x03ab:
        r1 = r8.b;
        r1 = (c.e.a.b.e.c.g1) r1;
        c.e.a.b.e.c.g1.B(r1);
        r1 = r8.c;
        if (r1 == 0) goto L_0x03bc;
    L_0x03b6:
        r8.j();
        r1 = 0;
        r8.c = r1;
    L_0x03bc:
        r1 = r8.b;
        r1 = (c.e.a.b.e.c.g1) r1;
        c.e.a.b.e.c.g1.D(r1, r7);
        r1 = r62.m();
        r7 = r5.v();
        r1 = r1.C(r7, r6);
        r7 = r8.c;
        if (r7 == 0) goto L_0x03d9;
    L_0x03d3:
        r8.j();
        r7 = 0;
        r8.c = r7;
    L_0x03d9:
        r7 = r8.b;
        r7 = (c.e.a.b.e.c.g1) r7;
        c.e.a.b.e.c.g1.w(r7);
        r7 = r8.c;
        if (r7 == 0) goto L_0x03ea;
    L_0x03e4:
        r8.j();
        r7 = 0;
        r8.c = r7;
    L_0x03ea:
        r7 = r8.b;
        r7 = (c.e.a.b.e.c.g1) r7;
        c.e.a.b.e.c.g1.y(r7, r1);
        r1 = 0;
    L_0x03f2:
        r7 = r5.J();
        if (r1 >= r7) goto L_0x041e;
    L_0x03f8:
        r7 = r5.u(r1);
        r7 = r7.x();
        r7 = java.lang.Integer.valueOf(r7);
        r7 = r6.contains(r7);
        if (r7 == 0) goto L_0x041b;
    L_0x040a:
        r7 = r8.c;
        if (r7 == 0) goto L_0x0414;
    L_0x040e:
        r8.j();
        r7 = 0;
        r8.c = r7;
    L_0x0414:
        r7 = r8.b;
        r7 = (c.e.a.b.e.c.g1) r7;
        c.e.a.b.e.c.g1.x(r7, r1);
    L_0x041b:
        r1 = r1 + 1;
        goto L_0x03f2;
    L_0x041e:
        r1 = 0;
    L_0x041f:
        r7 = r5.L();
        if (r1 >= r7) goto L_0x044b;
    L_0x0425:
        r7 = r5.A(r1);
        r7 = r7.y();
        r7 = java.lang.Integer.valueOf(r7);
        r7 = r6.contains(r7);
        if (r7 == 0) goto L_0x0448;
    L_0x0437:
        r7 = r8.c;
        if (r7 == 0) goto L_0x0441;
    L_0x043b:
        r8.j();
        r7 = 0;
        r8.c = r7;
    L_0x0441:
        r7 = r8.b;
        r7 = (c.e.a.b.e.c.g1) r7;
        c.e.a.b.e.c.g1.C(r7, r1);
    L_0x0448:
        r1 = r1 + 1;
        goto L_0x041f;
    L_0x044b:
        r1 = java.lang.Integer.valueOf(r4);
        r4 = r8.l();
        r4 = (c.e.a.b.e.c.u4) r4;
        r4 = (c.e.a.b.e.c.g1) r4;
        r3.put(r1, r4);
        goto L_0x0469;
    L_0x045b:
        r20 = r0;
        goto L_0x0356;
    L_0x045f:
        r20 = r0;
        r0 = r1;
        r1 = java.lang.Integer.valueOf(r4);
        r3.put(r1, r5);
    L_0x0469:
        r1 = r0;
        r0 = r20;
        goto L_0x0356;
    L_0x046e:
        r0 = move-exception;
        r7 = r5;
    L_0x0470:
        if (r7 == 0) goto L_0x0475;
    L_0x0472:
        r7.close();
    L_0x0475:
        throw r0;
    L_0x0476:
        r18 = r8;
    L_0x0478:
        r0 = r3;
        goto L_0x047d;
    L_0x047a:
        r18 = r8;
        r0 = r15;
    L_0x047d:
        r20 = r2.iterator();
    L_0x0481:
        r1 = r20.hasNext();
        if (r1 == 0) goto L_0x0629;
    L_0x0487:
        r1 = r20.next();
        r1 = (java.lang.Integer) r1;
        r21 = r1.intValue();
        r1 = java.lang.Integer.valueOf(r21);
        r1 = r0.get(r1);
        r1 = (c.e.a.b.e.c.g1) r1;
        r5 = new java.util.BitSet;
        r5.<init>();
        r6 = new java.util.BitSet;
        r6.<init>();
        r7 = new b.f.a;
        r7.m5038init();
        if (r1 == 0) goto L_0x04e9;
    L_0x04ac:
        r2 = r1.J();
        if (r2 != 0) goto L_0x04b3;
    L_0x04b2:
        goto L_0x04e9;
    L_0x04b3:
        r2 = r1.I();
        r2 = r2.iterator();
    L_0x04bb:
        r3 = r2.hasNext();
        if (r3 == 0) goto L_0x04e9;
    L_0x04c1:
        r3 = r2.next();
        r3 = (c.e.a.b.e.c.z0) r3;
        r4 = r3.w();
        if (r4 == 0) goto L_0x04bb;
    L_0x04cd:
        r4 = r3.x();
        r4 = java.lang.Integer.valueOf(r4);
        r8 = r3.y();
        if (r8 == 0) goto L_0x04e4;
    L_0x04db:
        r22 = r3.z();
        r3 = java.lang.Long.valueOf(r22);
        goto L_0x04e5;
    L_0x04e4:
        r3 = 0;
    L_0x04e5:
        r7.put(r4, r3);
        goto L_0x04bb;
    L_0x04e9:
        r8 = new b.f.a;
        r8.m5038init();
        if (r1 == 0) goto L_0x0538;
    L_0x04f0:
        r2 = r1.L();
        if (r2 != 0) goto L_0x04f7;
    L_0x04f6:
        goto L_0x0538;
    L_0x04f7:
        r2 = r1.K();
        r2 = r2.iterator();
    L_0x04ff:
        r3 = r2.hasNext();
        if (r3 == 0) goto L_0x0538;
    L_0x0505:
        r3 = r2.next();
        r3 = (c.e.a.b.e.c.h1) r3;
        r4 = r3.x();
        if (r4 == 0) goto L_0x0533;
    L_0x0511:
        r4 = r3.A();
        if (r4 <= 0) goto L_0x0533;
    L_0x0517:
        r4 = r3.y();
        r4 = java.lang.Integer.valueOf(r4);
        r22 = r3.A();
        r23 = r0;
        r0 = r22 + -1;
        r24 = r3.u(r0);
        r0 = java.lang.Long.valueOf(r24);
        r8.put(r4, r0);
        goto L_0x0535;
    L_0x0533:
        r23 = r0;
    L_0x0535:
        r0 = r23;
        goto L_0x04ff;
    L_0x0538:
        r23 = r0;
        if (r1 == 0) goto L_0x0583;
    L_0x053c:
        r4 = 0;
    L_0x053d:
        r0 = r1.z();
        r0 = r0 << 6;
        if (r4 >= r0) goto L_0x0583;
    L_0x0545:
        r0 = r1.v();
        r0 = c.e.a.b.f.b.q9.Q(r0, r4);
        if (r0 == 0) goto L_0x0574;
    L_0x054f:
        r0 = r62.d();
        r0 = r0.n;
        r2 = java.lang.Integer.valueOf(r21);
        r3 = java.lang.Integer.valueOf(r4);
        r13 = "Filter already evaluated. audience ID, filter ID";
        r0.c(r13, r2, r3);
        r6.set(r4);
        r0 = r1.E();
        r0 = c.e.a.b.f.b.q9.Q(r0, r4);
        if (r0 == 0) goto L_0x0574;
    L_0x056f:
        r5.set(r4);
        r0 = 1;
        goto L_0x0575;
    L_0x0574:
        r0 = 0;
    L_0x0575:
        if (r0 != 0) goto L_0x057e;
    L_0x0577:
        r0 = java.lang.Integer.valueOf(r4);
        r7.remove(r0);
    L_0x057e:
        r4 = r4 + 1;
        r13 = r64;
        goto L_0x053d;
    L_0x0583:
        r0 = java.lang.Integer.valueOf(r21);
        r0 = r15.get(r0);
        r4 = r0;
        r4 = (c.e.a.b.e.c.g1) r4;
        if (r17 == 0) goto L_0x05fe;
    L_0x0590:
        if (r16 == 0) goto L_0x05fe;
    L_0x0592:
        r0 = java.lang.Integer.valueOf(r21);
        r0 = r9.get(r0);
        r0 = (java.util.List) r0;
        if (r0 == 0) goto L_0x05fe;
    L_0x059e:
        r1 = r10.h;
        if (r1 == 0) goto L_0x05fe;
    L_0x05a2:
        r1 = r10.g;
        if (r1 != 0) goto L_0x05a7;
    L_0x05a6:
        goto L_0x05fe;
    L_0x05a7:
        r0 = r0.iterator();
    L_0x05ab:
        r1 = r0.hasNext();
        if (r1 == 0) goto L_0x05fe;
    L_0x05b1:
        r1 = r0.next();
        r1 = (c.e.a.b.e.c.l0) r1;
        r2 = r1.y();
        r3 = r10.h;
        r24 = r3.longValue();
        r26 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;
        r24 = r24 / r26;
        r1 = r1.F();
        if (r1 == 0) goto L_0x05d3;
    L_0x05cb:
        r1 = r10.g;
        r24 = r1.longValue();
        r24 = r24 / r26;
    L_0x05d3:
        r1 = java.lang.Integer.valueOf(r2);
        r1 = r7.containsKey(r1);
        if (r1 == 0) goto L_0x05e8;
    L_0x05dd:
        r1 = java.lang.Integer.valueOf(r2);
        r3 = java.lang.Long.valueOf(r24);
        r7.put(r1, r3);
    L_0x05e8:
        r1 = java.lang.Integer.valueOf(r2);
        r1 = r8.containsKey(r1);
        if (r1 == 0) goto L_0x05ab;
    L_0x05f2:
        r1 = java.lang.Integer.valueOf(r2);
        r2 = java.lang.Long.valueOf(r24);
        r8.put(r1, r2);
        goto L_0x05ab;
    L_0x05fe:
        r0 = new c.e.a.b.f.b.da;
        r3 = r10.d;
        r13 = 0;
        r1 = r0;
        r2 = r62;
        r22 = 0;
        r14 = r18;
        r18 = 1;
        r22 = r9;
        r19 = 0;
        r9 = r13;
        r1.m1400init(r2, r3, r4, r5, r6, r7, r8, r9);
        r1 = r10.f;
        r2 = java.lang.Integer.valueOf(r21);
        r1.put(r2, r0);
        r13 = r64;
        r18 = r14;
        r9 = r22;
        r0 = r23;
        r14 = r65;
        goto L_0x0481;
    L_0x0629:
        r14 = r18;
        goto L_0x062d;
    L_0x062c:
        r14 = r8;
    L_0x062d:
        r18 = 1;
        r19 = 0;
        r0 = r64.isEmpty();
        r1 = "Skipping failed audience ID";
        if (r0 != 0) goto L_0x07d2;
    L_0x0639:
        r0 = new c.e.a.b.f.b.ca;
        r2 = 0;
        r0.m1393init(r10, r2);
        r3 = new b.f.a;
        r3.m5038init();
        r4 = r64.iterator();
    L_0x0648:
        r5 = r4.hasNext();
        if (r5 == 0) goto L_0x07d2;
    L_0x064e:
        r5 = r4.next();
        r5 = (c.e.a.b.e.c.a1) r5;
        r6 = r10.d;
        r6 = r0.a(r6, r5);
        if (r6 == 0) goto L_0x0648;
    L_0x065c:
        r7 = r62.q();
        r8 = r10.d;
        r9 = r6.F();
        r13 = r5.F();
        r13 = r7.z(r8, r13);
        if (r13 != 0) goto L_0x06a9;
    L_0x0670:
        r13 = r7.d();
        r13 = r13.i;
        r15 = c.e.a.b.f.b.q3.s(r8);
        r7 = r7.j();
        r7 = r7.u(r9);
        r9 = "Event aggregate wasn't created during raw event logging. appId, event";
        r13.c(r9, r15, r7);
        r7 = new c.e.a.b.f.b.l;
        r28 = r7;
        r30 = r5.F();
        r31 = 1;
        r33 = 1;
        r35 = 1;
        r37 = r5.H();
        r39 = 0;
        r41 = 0;
        r42 = 0;
        r43 = 0;
        r44 = 0;
        r29 = r8;
        r28.m1453init(r29, r30, r31, r33, r35, r37, r39, r41, r42, r43, r44);
        goto L_0x06de;
    L_0x06a9:
        r7 = new c.e.a.b.f.b.l;
        r45 = r7;
        r5 = r13.a;
        r46 = r5;
        r5 = r13.b;
        r47 = r5;
        r8 = r13.c;
        r15 = 1;
        r48 = r8 + r15;
        r8 = r13.d;
        r50 = r8 + r15;
        r8 = r13.e;
        r52 = r8 + r15;
        r8 = r13.f;
        r54 = r8;
        r8 = r13.g;
        r56 = r8;
        r5 = r13.h;
        r58 = r5;
        r5 = r13.i;
        r59 = r5;
        r5 = r13.j;
        r60 = r5;
        r5 = r13.k;
        r61 = r5;
        r45.m1453init(r46, r47, r48, r50, r52, r54, r56, r58, r59, r60, r61);
    L_0x06de:
        r5 = r62.q();
        r5.H(r7);
        r8 = r7.c;
        r5 = r6.F();
        r13 = r3.get(r5);
        r13 = (java.util.Map) r13;
        if (r13 != 0) goto L_0x0722;
    L_0x06f3:
        r13 = r62.q();
        r15 = r10.d;
        r13 = r13.c0(r15, r5);
        r15 = c.e.a.b.e.c.n9.a();
        if (r15 == 0) goto L_0x0714;
    L_0x0703:
        r15 = r10.a;
        r15 = r15.g;
        r2 = r10.d;
        r63 = r0;
        r0 = c.e.a.b.f.b.p.F0;
        r0 = r15.u(r2, r0);
        if (r0 != 0) goto L_0x071e;
    L_0x0713:
        goto L_0x0716;
    L_0x0714:
        r63 = r0;
    L_0x0716:
        if (r13 != 0) goto L_0x071e;
    L_0x0718:
        r0 = new b.f.a;
        r0.m5038init();
        r13 = r0;
    L_0x071e:
        r3.put(r5, r13);
        goto L_0x0724;
    L_0x0722:
        r63 = r0;
    L_0x0724:
        r0 = r13.keySet();
        r0 = r0.iterator();
    L_0x072c:
        r2 = r0.hasNext();
        if (r2 == 0) goto L_0x07cd;
    L_0x0732:
        r2 = r0.next();
        r2 = (java.lang.Integer) r2;
        r2 = r2.intValue();
        r5 = r10.e;
        r15 = java.lang.Integer.valueOf(r2);
        r5 = r5.contains(r15);
        if (r5 == 0) goto L_0x0756;
    L_0x0748:
        r5 = r62.d();
        r5 = r5.n;
        r2 = java.lang.Integer.valueOf(r2);
        r5.b(r1, r2);
        goto L_0x072c;
    L_0x0756:
        r5 = java.lang.Integer.valueOf(r2);
        r5 = r13.get(r5);
        r5 = (java.util.List) r5;
        r5 = r5.iterator();
        r15 = 1;
    L_0x0765:
        r16 = r5.hasNext();
        if (r16 == 0) goto L_0x07b4;
    L_0x076b:
        r15 = r5.next();
        r15 = (c.e.a.b.e.c.l0) r15;
        r64 = r0;
        r0 = new c.e.a.b.f.b.fa;
        r66 = r3;
        r3 = r10.d;
        r0.m5821init(r10, r3, r2, r15);
        r3 = r10.g;
        r67 = r4;
        r4 = r10.h;
        r15 = r15.y();
        r27 = r10.u(r2, r15);
        r20 = r0;
        r21 = r3;
        r22 = r4;
        r23 = r6;
        r24 = r8;
        r26 = r7;
        r15 = r20.i(r21, r22, r23, r24, r26, r27);
        if (r15 == 0) goto L_0x07aa;
    L_0x079c:
        r3 = r10.s(r2);
        r3.b(r0);
        r0 = r64;
        r3 = r66;
        r4 = r67;
        goto L_0x0765;
    L_0x07aa:
        r0 = r10.e;
        r3 = java.lang.Integer.valueOf(r2);
        r0.add(r3);
        goto L_0x07ba;
    L_0x07b4:
        r64 = r0;
        r66 = r3;
        r67 = r4;
    L_0x07ba:
        if (r15 != 0) goto L_0x07c5;
    L_0x07bc:
        r0 = r10.e;
        r2 = java.lang.Integer.valueOf(r2);
        r0.add(r2);
    L_0x07c5:
        r0 = r64;
        r3 = r66;
        r4 = r67;
        goto L_0x072c;
    L_0x07cd:
        r0 = r63;
        r2 = 0;
        goto L_0x0648;
    L_0x07d2:
        r0 = r65.isEmpty();
        if (r0 != 0) goto L_0x093f;
    L_0x07d8:
        r0 = new b.f.a;
        r0.m5038init();
        r2 = r65.iterator();
    L_0x07e1:
        r3 = r2.hasNext();
        if (r3 == 0) goto L_0x093f;
    L_0x07e7:
        r3 = r2.next();
        r3 = (c.e.a.b.e.c.i1) r3;
        r4 = r3.D();
        r5 = r0.get(r4);
        r5 = (java.util.Map) r5;
        if (r5 != 0) goto L_0x0821;
    L_0x07f9:
        r5 = r62.q();
        r6 = r10.d;
        r5 = r5.d0(r6, r4);
        r6 = c.e.a.b.e.c.n9.a();
        if (r6 == 0) goto L_0x0817;
    L_0x0809:
        r6 = r10.a;
        r6 = r6.g;
        r7 = r10.d;
        r8 = c.e.a.b.f.b.p.F0;
        r6 = r6.u(r7, r8);
        if (r6 != 0) goto L_0x081e;
    L_0x0817:
        if (r5 != 0) goto L_0x081e;
    L_0x0819:
        r5 = new b.f.a;
        r5.m5038init();
    L_0x081e:
        r0.put(r4, r5);
    L_0x0821:
        r4 = r5.keySet();
        r4 = r4.iterator();
    L_0x0829:
        r6 = r4.hasNext();
        if (r6 == 0) goto L_0x07e1;
    L_0x082f:
        r6 = r4.next();
        r6 = (java.lang.Integer) r6;
        r6 = r6.intValue();
        r7 = r10.e;
        r8 = java.lang.Integer.valueOf(r6);
        r7 = r7.contains(r8);
        if (r7 == 0) goto L_0x0853;
    L_0x0845:
        r3 = r62.d();
        r3 = r3.n;
        r4 = java.lang.Integer.valueOf(r6);
        r3.b(r1, r4);
        goto L_0x07e1;
    L_0x0853:
        r7 = java.lang.Integer.valueOf(r6);
        r7 = r5.get(r7);
        r7 = (java.util.List) r7;
        r7 = r7.iterator();
        r9 = 1;
    L_0x0862:
        r8 = r7.hasNext();
        if (r8 == 0) goto L_0x092a;
    L_0x0868:
        r8 = r7.next();
        r8 = (c.e.a.b.e.c.o0) r8;
        r9 = r62.d();
        r13 = 2;
        r9 = r9.x(r13);
        if (r9 == 0) goto L_0x08c0;
    L_0x0879:
        r9 = r62.d();
        r9 = r9.n;
        r15 = java.lang.Integer.valueOf(r6);
        r16 = r8.v();
        if (r16 == 0) goto L_0x0896;
    L_0x0889:
        r16 = r8.w();
        r16 = java.lang.Integer.valueOf(r16);
        r63 = r0;
        r13 = r16;
        goto L_0x0899;
    L_0x0896:
        r63 = r0;
        r13 = 0;
    L_0x0899:
        r0 = r62.j();
        r66 = r1;
        r1 = r8.x();
        r0 = r0.y(r1);
        r1 = "Evaluating filter. audience, filter, property";
        r9.d(r1, r15, r13, r0);
        r0 = r62.d();
        r0 = r0.n;
        r1 = r62.m();
        r1 = r1.y(r8);
        r9 = "Filter definition";
        r0.b(r9, r1);
        goto L_0x08c4;
    L_0x08c0:
        r63 = r0;
        r66 = r1;
    L_0x08c4:
        r0 = r8.v();
        if (r0 == 0) goto L_0x0903;
    L_0x08ca:
        r0 = r8.w();
        r1 = 256; // 0x100 float:3.59E-43 double:1.265E-321;
        if (r0 <= r1) goto L_0x08d3;
    L_0x08d2:
        goto L_0x0903;
    L_0x08d3:
        r0 = new c.e.a.b.f.b.ha;
        r1 = r10.d;
        r0.m5837init(r10, r1, r6, r8);
        r1 = r10.g;
        r9 = r10.h;
        r8 = r8.w();
        r8 = r10.u(r6, r8);
        r9 = r0.i(r1, r9, r3, r8);
        if (r9 == 0) goto L_0x08f9;
    L_0x08ec:
        r1 = r10.s(r6);
        r1.b(r0);
        r0 = r63;
        r1 = r66;
        goto L_0x0862;
    L_0x08f9:
        r0 = r10.e;
        r1 = java.lang.Integer.valueOf(r6);
        r0.add(r1);
        goto L_0x092e;
    L_0x0903:
        r0 = r62.d();
        r0 = r0.i;
        r1 = r10.d;
        r1 = c.e.a.b.f.b.q3.s(r1);
        r7 = r8.v();
        if (r7 == 0) goto L_0x091e;
    L_0x0915:
        r7 = r8.w();
        r7 = java.lang.Integer.valueOf(r7);
        goto L_0x091f;
    L_0x091e:
        r7 = 0;
    L_0x091f:
        r7 = java.lang.String.valueOf(r7);
        r8 = "Invalid property filter ID. appId, id";
        r0.c(r8, r1, r7);
        r9 = 0;
        goto L_0x092e;
    L_0x092a:
        r63 = r0;
        r66 = r1;
    L_0x092e:
        if (r9 != 0) goto L_0x0939;
    L_0x0930:
        r0 = r10.e;
        r1 = java.lang.Integer.valueOf(r6);
        r0.add(r1);
    L_0x0939:
        r0 = r63;
        r1 = r66;
        goto L_0x0829;
    L_0x093f:
        r1 = new java.util.ArrayList;
        r1.<init>();
        r0 = r10.f;
        r0 = r0.keySet();
        r2 = r10.e;
        r0.removeAll(r2);
        r2 = r0.iterator();
    L_0x0953:
        r0 = r2.hasNext();
        if (r0 == 0) goto L_0x09db;
    L_0x0959:
        r0 = r2.next();
        r0 = (java.lang.Integer) r0;
        r0 = r0.intValue();
        r3 = r10.f;
        r4 = java.lang.Integer.valueOf(r0);
        r3 = r3.get(r4);
        r3 = (c.e.a.b.f.b.da) r3;
        r3 = r3.a(r0);
        r1.add(r3);
        r4 = r62.q();
        r5 = r10.d;
        r3 = r3.A();
        r4.n();
        r4.g();
        b.i.b.f.N(r5);
        java.util.Objects.requireNonNull(r3, r12);
        r3 = r3.i();
        r6 = new android.content.ContentValues;
        r6.<init>();
        r7 = "app_id";
        r6.put(r7, r5);
        r0 = java.lang.Integer.valueOf(r0);
        r6.put(r14, r0);
        r6.put(r11, r3);
        r0 = r4.t();	 Catch:{ SQLiteException -> 0x09c8 }
        r3 = "audience_filter_values";
        r7 = 5;
        r8 = 0;
        r6 = r0.insertWithOnConflict(r3, r8, r6, r7);	 Catch:{ SQLiteException -> 0x09c6 }
        r15 = -1;
        r0 = (r6 > r15 ? 1 : (r6 == r15 ? 0 : -1));
        if (r0 != 0) goto L_0x0953;
    L_0x09b6:
        r0 = r4.d();	 Catch:{ SQLiteException -> 0x09c6 }
        r0 = r0.f;	 Catch:{ SQLiteException -> 0x09c6 }
        r3 = "Failed to insert filter results (got -1). appId";
        r6 = c.e.a.b.f.b.q3.s(r5);	 Catch:{ SQLiteException -> 0x09c6 }
        r0.b(r3, r6);	 Catch:{ SQLiteException -> 0x09c6 }
        goto L_0x0953;
    L_0x09c6:
        r0 = move-exception;
        goto L_0x09ca;
    L_0x09c8:
        r0 = move-exception;
        r8 = 0;
    L_0x09ca:
        r3 = r4.d();
        r3 = r3.f;
        r4 = c.e.a.b.f.b.q3.s(r5);
        r5 = "Error storing filter results. appId";
        r3.c(r5, r4, r0);
        goto L_0x0953;
    L_0x09db:
        return r1;
    L_0x09dc:
        r0 = move-exception;
        r7 = r4;
    L_0x09de:
        if (r7 == 0) goto L_0x09e3;
    L_0x09e0:
        r7.close();
    L_0x09e3:
        throw r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.ba.t(java.lang.String, java.util.List, java.util.List, java.lang.Long, java.lang.Long):java.util.List");
    }

    public final boolean u(int i, int i2) {
        if (this.f.get(Integer.valueOf(i)) == null) {
            return false;
        }
        return ((da) this.f.get(Integer.valueOf(i))).d.get(i2);
    }
}
